# Create your views here.
from django.shortcuts import render_to_response
from django.http import HttpResponse
import datetime

def time(request):
    #return HttpResponse('OK')
    curent_time = datetime.datetime.now()
    return render_to_response('.\\time\\time.html',
        {'curent_time':curent_time}
    )

def time_plus(request, offset):
    date_offset = int(offset)
    next_time = datetime.datetime.now() + datetime.timedelta(date_offset)
    return render_to_response('.\\time_plus\\time_plus.html',{
        'date_offset':date_offset,
        'next_time':next_time})